import { createApp } from "vue";
import App from "./App.vue";
//	Router
import Router from "@/router";
//	Store
import Store, { key } from "@/store";

import NavieUI from "@/naive-ui";

//	SVG   必须
import "virtual:svg-icons-register";
import SvgIcons from "@/icons";
// directive
import Directive from "@/directive";
// 国际化
import VueI18n from "@/lang";

import RootNode from "@/components/RootNode.vue";

import VuePromise from "@/plugins/vue-promise";

import Pinia from "@/pinia";

const app = createApp(App);

app.component("RootNode", RootNode);

app.use(Router)
	.use(Store, key)
	.use(SvgIcons)
	.use(NavieUI)
	.use(Directive)
	.use(VueI18n)
	.use(VuePromise)
	.use(Pinia);

app.mount("#app");
